<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a href="/rule.html">游戏规则</a>
    <h1>欢迎来到猜数字游戏！</h1>
    <form action="/create" method="post">
        <h3>如果你想创建一个房间，请点击这个</h3>
        <button>创建房间</button>
    </form>
    <table>
        <th>房间号</th>
        <th>里面的数字</th>
        <tbody>
        {% for i in msg2 %}
        <tr>
            <td>{{i[0]}}</td>
            <td>{{i[1]}}</td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
    <form action="/join" method="post">
        房间号:<input type="text" name="room_num"/>
        <button type="submit">加入</button>{{m}}
    </form>
</body>
</html>